.videoPage {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
}

/* 搜索头部样式 */
.searchHeader {
  padding: 12px 16px;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.searchBar {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 20px;
  padding: 8px 12px;
}

.searchIcon {
  margin-right: 8px;
}

.searchInput {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  outline: none;
}

.searchInput::placeholder {
  color: #999;
}

/* 分类导航样式 */
.categories {
  display: flex;
  padding: 12px 8px;
  background-color: white;
  overflow-x: auto;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.categories::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.categoryItem {
  padding: 6px 12px;
  margin: 0 4px;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  border-radius: 16px;
}

.categoryItem.active {
  background-color: #2979ff;
  color: white;
}

/* 视频网格样式 */
.videoGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
}

.videoCard {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.videoCover {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 宽高比 */
  overflow: hidden;
}

.videoCover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.videoDuration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 2px;
}

.videoInfo {
  padding: 8px;
}

.videoTitle {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  height: 2.6em;
}

.videoMeta {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #999;
}

.videoAuthor {
  margin-bottom: 2px;
}

/* 响应式调整 */
@media (max-width: 340px) {
  .videoGrid {
    grid-template-columns: 1fr;
  }
}